package cn.wange;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ComputeDate {
    public static void main(String[] args) {
        Date dd = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date day = new Date(System.currentTimeMillis() + (60L * 60 * 1000 * 24 * 30));
        System.out.println(simpleDateFormat.format(dd));
        System.out.printf("%tF %<tT %<tA %<tB %<tp%n", day);
    }
}
